﻿<phone:PhoneApplicationPage 
  x:Class="Renren.PlacePickerPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
  xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
  FontFamily="{StaticResource PhoneFontFamilyNormal}"
  FontSize="{StaticResource PhoneFontSizeNormal}"
  Foreground="{StaticResource PhoneForegroundBrush}"
  SupportedOrientations="Portrait"  Orientation="Portrait"
  shell:SystemTray.IsVisible="False"
  
  xmlns:local="clr-namespace:Utils.UIEffect"
  xmlns:renren="clr-namespace:Renren.Controls"
  local:TiltEffect.IsTiltEnabled="True">

  <!--LayoutRoot is the root grid where all page content is placed-->
  <Grid x:Name="LayoutRoot" Background="Transparent">
    <renren:StreamBox x:Name="StreamBox" ItemsSource="{Binding PlaceList}" TailIdleText="更多地点">
      <renren:StreamBox.ItemTemplate>
        <DataTemplate>
          <StackPanel Orientation="Horizontal" Margin="0,0,0,20">
            <Grid>
              <Image Source="/Images/pin.png" Height="72" VerticalAlignment="Top" />
              <TextBlock Text="1" HorizontalAlignment="Center" Margin="0,10,0,0" />
            </Grid>
            <StackPanel>
              <TextBlock Text="{Binding Model.Name}"
                   FontSize="26" Style="{StaticResource PhoneTextExtraLargeStyle}"
                   HorizontalAlignment="Left" />
              <TextBlock Text="{Binding Types}"
                   Style="{StaticResource PhoneTextSubtleStyle}"
                   Foreground="{StaticResource PhoneAccentBrush}"
                   HorizontalAlignment="Left" />
              <TextBlock Text="{Binding Distance}"
                   Style="{StaticResource PhoneTextSubtleStyle}"
                   HorizontalAlignment="Left" />
            </StackPanel>
          </StackPanel>
        </DataTemplate>
      </renren:StreamBox.ItemTemplate>
    </renren:StreamBox>
  </Grid>

  <!--Sample code showing usage of ApplicationBar-->
  <!--<phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
      <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
      <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
      <shell:ApplicationBar.MenuItems>
        <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
        <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
      </shell:ApplicationBar.MenuItems>
    </shell:ApplicationBar>
  </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
